/**
 * Created by Administrator on 2016/4/4.
 */
import {serverHost as server} from './args'
export default (url,data)=>{
    return $.ajax({
        url:server+url,
        data:data,
        type:'post',
        dataType:'jsonp',
        jsonp: 'callback'
    }).error((error)=>{
        alert('服务器发生异常');
        console.log(error);
    });
}